home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960715-19961006 / 000437_news@columbia.edu _Wed Oct 2 10:29:24 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: news@columbia.edu
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id KAA17779 for <kermit.misc@watsun.cc.columbia.edu>; Wed, 2 Oct 1996 10:29:23 -0400 (EDT)
  3. Received: (from news@localhost) by newsmaster.cc.columbia.edu (8.7.5/8.7.3) id KAA00276 for kermit.misc@watsun; Wed, 2 Oct 1996 10:29:19 -0400 (EDT)
  4. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  5. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: C-Kermit on VMS - what am I doing WRONG
  8. Date: 2 Oct 1996 14:28:59 GMT
  9. Organization: Columbia University
  10. Lines: 64
  11. Message-ID: <52tu7b$p8s@apakabar.cc.columbia.edu>
  12. References: <52tl48$437@niamh.indigo.ie>
  13. NNTP-Posting-Host: watsun.cc.columbia.edu
  14.  
  15. In article <52tl48$437@niamh.indigo.ie>,
  16. Eoin C. Bair∩┐╜ad <ebairead@indigo.ie> wrote:
  17. : I've put C-Kermit on a VAX running VMS, to replace Kermit-32,
  18. : and I want to write a simple script to login to a unix box, and
  19. : transfer a file.
  20. : So I define CKERMIT as a foreign command and I go:
  21. : $ CKERMIT
  22. : C-Kermit>set line ker$comm
  23. : C-Kermit>out \13
  24. : C-Kermit>input 5 login:
  25. : C-Kermit>out username\13
  26. : C-Kermit>input 5 Password:
  27. : C-Kermit>out secret\13
  28. : C-Kermit>input 5 $
  29. : C-Kermit>out ckermit -x\13
  30. : C-Kermit>send myfile.dat
  31. : C-Kermit>finish
  32. : C-Kermit>out exit\13
  33. : and that works fine.
  34. : so I put the above lines in a file - XFILE.INI
  35. : set line ker$comm
  36. : out \13
  37. : input 5 login:
  38. : out username\13
  39. : input 5 Password:
  40. : out secret\13
  41. : input 5 $
  42. : out ckermit -x\13
  43. : send myfile.dat
  44. : finish
  45. : out exit\13
  46. : and I go:
  47. : $ CKERMIT
  48. : C-Kermit>take XFILE.ini
  49. : and it falls over - it doesn't seem to want to OUTPUT anything
  50. : and I get "invalid password" messages.
  51. : Am I doing anything wrong ????
  52. The commands are the same but the timing is different.  The remote UNIX
  53. system clears its typeahead buffer *after* issuing the Password: prompt
  54. but before reading the password, but the script is sending the password
  55. instantly.  Insert a little pause:
  56.  
  57.   set line ker$comm
  58.   out \13
  59.   input 5 login:
  60.   out username\13
  61.   input 5 Password:
  62.   pause 1            ; <-- Add this
  63.   out secret\13
  64.   input 5 $
  65.   out ckermit -x\13
  66.   send myfile.dat
  67.   finish
  68.   out exit\13
  69.  
  70. - Frank